/**
 * Main Stylesheet - Core Design System and Global Styles
 * 
 * This file serves as the central stylesheet for the Rayhan Clinic website,
 * containing the complete design system, global styles, and reusable components.
 * 
 * Architecture:
 * - Imports all component-specific stylesheets
 * - Defines CSS custom properties (design tokens)
 * - Establishes global base styles and resets
 * - Provides reusable component classes
 * - Implements responsive design patterns
 * 
 * Connected to:
 * - All component CSS files (imported at top)
 * - All HTML pages (via Main.css import)
 * - Translation system (supports RTL/LTR)
 * 
 * Design System:
 * - CSS Variables for consistent theming
 * - Modular component-based architecture
 * - Mobile-first responsive design
 * - Accessibility-focused semantic markup
 */

/* Import Component Stylesheets */
@import 'Header.css';
@import 'Hero.css';
@import 'Practitioner.css';
@import 'Features.css';
@import 'Services.css';
@import 'Offer.css';
@import 'Booking.css';
@import 'Discount.css';
@import 'Gift.css';
@import 'Footer.css';
@import 'Appointment.css';
@import 'components/Forms.css';
@import 'Media Queries.css';
@import 'components/Cards.css';
@import 'components/Buttons.css';
@import '../components/Toast.css';
@import '../components/CustomDropdown.css';
/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================
   Central design system variables for consistent theming.
   All colors, spacing, and typography should use these variables.
   Do NOT hardcode values in component styles.
*/

:root {
  /* Brand Colors */
  --color-primary: #335e42; /* Deep Green - Primary brand color */
  --color-accent: #ffd22f; /* Yellow Highlight - Secondary accent */

  /* Background Colors */
  --bg: #ffffff; /* Main background */
  --bg-soft: #f9fafb; /* Light background for sections */
  --bg-blue: #e8f2f1; /* Soft blue background */
  --bg-grey: #2d3748; /* Dark grey for text areas */
  --bg-accent: #f0f9f4; /* Light green accent background */

  /* Text Colors */
  --text: #1b1b1b; /* Primary text color */
  --text-muted: #6b6b6b; /* Secondary/muted text */

  /* UI Elements */
  --border: #e5e7eb; /* Border color */

  /* Typography System */
  --font-family:
    system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing System */
  --container-width: 120rem; /* Max container width */
  --section-spacing: 2rem; /* Vertical spacing between sections */
  --element-spacing: 2.4rem; /* Spacing between elements */

  /* Border Radius System */
  --radius-sm: 0.6rem; /* Small border radius */
  --radius-md: 1rem; /* Medium border radius */
  --radius-lg: 1.6rem; /* Large border radius */

  /* Shadow System */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05); /* Small shadow */
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06); /* Medium shadow */
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08); /* Large shadow */

  /* Transition System */
  --transition-fast: 0.2s ease; /* Fast transitions */
  --transition-normal: 0.3s ease; /* Normal transitions */
  --transition-slow: 0.5s ease; /* Slow transitions */
}

/* ========================================
   GLOBAL BASE STYLES & RESETS
   ========================================
   Base styles and browser normalization.
   Provides consistent foundation across all browsers.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 10px base for rem calculations */
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Prevent horizontal scroll */
html {
  overflow-x: hidden;
}

/* ========================================
   FORM COMPONENTS
   ========================================
   Form styles are now in Forms.css component
   This file only contains Main.css specific form base styles
*/

/* ========================================
   LAYOUT COMPONENTS
   ========================================
   Section containers and grid layout systems.
   Provides consistent spacing and responsive layouts.
*/

.section {
  padding: var(--section-spacing) 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.6rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: var(--font-weight-regular);
}

/* Lists */
.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.list-item:last-child {
  margin-bottom: 0;
}

.bullet {
  width: 0.8rem;
  height: 0.8rem;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========================================
   SOCIAL MEDIA COMPONENTS
   ========================================
   Social media icon styling with hover effects.
   Used in header and footer sections.
*/

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-normal);
  border: 1px solid var(--border);
}

.social-icon img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
  transition: var(--transition-normal);
}

.social-icon:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-icon:hover img {
  filter: brightness(0) invert(1);
}

/* Alternative social link style */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.social-link img {
  width: 2rem;
  height: 2rem;
  filter: brightness(0) invert(1);
}

/* Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: var(--font-weight-semibold);
  gap: 0.5rem;
}

.badge-primary {
  background: var(--color-primary);
  color: white;
}

.badge-accent {
  background: var(--color-accent);
  color: var(--color-primary);
}

.badge-overlay {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
}

/* Info Card Components */
.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  transition: all var(--transition-normal);
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 4rem;
  height: 4rem;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon img {
  width: 2rem;
  height: 2rem;
  filter: brightness(0) invert(1);
}

.info-text {
  font-size: 1.4rem;
  font-weight: var(--font-weight-regular);
  color: var(--text);
  text-decoration: none;
}

/* Number Selector Component */
.number-selector {
  display: flex;
  gap: 1rem;
}

.number-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: var(--bg);
  color: var(--color-primary);
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.number-btn.active {
  background: var(--color-primary);
  color: white;
}

/* Step List Component */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--text);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  color: var(--text);
  flex-shrink: 0;
}

/* ========================================
   RTL/LTR SUPPORT
   ========================================
   Direction-specific styling for internationalization.
   Supports Arabic/Hebrew (RTL) and English (LTR).
*/

/* RTL overflow fixes */
[dir='rtl'] {
  overflow-x: hidden;
}

[dir='rtl'] body {
  overflow-x: hidden;
  direction: rtl;
}

[dir='rtl'] * {
  box-sizing: border-box;
}

/* ========================================
   RTL/LTR SUPPORT
   ========================================
   Direction-specific styling moved to Forms.css
*/
